package main

import (
	"time"
)

func print(c <-chan int) {

	select {
	case a := <-c:
		println(a, "----")
	}
}

func main() {
	c := make(chan int)
	go print(c)
	go print(c)
	c <- 34
	time.Sleep(time.Second * 5)
}
